<include file="Public:header" />
<include file="Public:menu" />
<include file="Public:navibar" /><br />
<div>
    <div>
        <switch name="select">
            <case value="inviteAdd">
                <h4>邀请码添加</h4>
                <div class="account_settings page grid box1">
                    <form action="__URL__/inviteAdds" method="post" enctype="multipart/form-data">
                        1.添加单个邀请码&nbsp;<input type="radio" name="choice" value="single" /><br />
                        <div class="col1">
                            <label class="label input_horizontal">邀请码</label>
                        </div>
                        <div class="col2">
                            <input class="text" type="text" name="nickname" value="" /><br />
                        </div>

                        2.批量添加邀请码&nbsp;<input type="radio" name="choice" value="some" />
                        <div class="col2">
                            <input type="file"  name="file" value="" /><br /><br />
                            <button class="btn btn_silver fbold" type="submit" onClick="if (confirm('是否确认提交？'))this.form.submit();return false;"><span>提交</span></button><br />
                        </div>
                    </form>
                </div>
            </case>
        
        
            <default />
            <h4>邀请码管理</h4>
            <hr>
            <include file="Public:searchbar" /> 
            <form action="__URL__/" method="post">
                <table border="1" width="100%">
                    <tr>
                        <th><input type="checkbox" name="checkbox" onclick="" /></th>
                        <th>ID</th>
                        <th>使用者email</th>
                        <th>使用者ID</th>
                        <th>状态</th>
                        <th>添加时间</th>
                        <th>操作</th>
                    </tr>
                    <volist name="invite" id="vo">
                        <tr>
                            <td><input name="id[]" type="checkbox" id="id[]" value="{{$vo.invite_id}}" /></td>
                            <td>{{$vo.invite_id}}</td>
                            <td>{{$vo.email}}</td>
                            <td>{{$vo.user_id}}</td>
                            <td><if condition="$vo.status neq 1">未激活<else />过期</if></td>
                            <td><if condition="$vo.create_time eq ''">未登记<else />{{$vo.create_time|date="Y-n-j H:i:s",###}}</if></td>
                            <td></td>
                        </tr>
                    </volist>
                    <tr>
                        <td colspan="7" align="left">
                            <input type="button"  value="删除"  onClick="if (confirm('是否确认提交？'))this.form.submit();return false;" /> <input type="button"  value="添加"  onClick="location.href='__URL__/inviteAdd';" />
                            
                        </td>
                    </tr>
                </table>
            </form>
            <include file="Public:paging" />
        </switch>
    </div>
    
</div>
<include file="Public:footer" />